//
//  CoreDataSource.m
//  Mtime
//
//  Created by Mac on 15/8/3.
//  Copyright (c) 2015年 wxk. All rights reserved.
//

#import "CoreDataSource.h"

@implementation CoreDataSource


+ (id)initWithDataSource:(NSString *)name {
        
    NSString *pathFile = [[NSBundle mainBundle] pathForResource:name ofType:@"json"];
    
    NSData *data = [NSData dataWithContentsOfFile:pathFile];
    
    id nowDic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:nil];

    return nowDic;

}


@end
